/*
* © 2010 Autodata Solutions Company. All Rights Reserved
* This source code is the confidential and proprietary information of Autodata Solutions Company.
* The user shall not, in whole or in part, copy, publish, disclose or make any use of this source code
* without the prior written consent of Autodata Solutions Company.
*/
Ext.ns('net.autodata.compare.photos');
(function () {
	
	/**
	 * @class IOFWrapper
	 * @extends Ext.Component
	 * @namespace net.autodata.compare.photos
	 */
	var IOFWrapper = Ext.extend(Ext.BoxComponent, {
		height: undefined,
		width: undefined,
		
		autoEl: {
			tag: 'em',
			cls: 'iof-wrapper'
		},
		
		iofImage: undefined,
		imageType: '',
		
		onRender: function ()
		{
			IOFWrapper.superclass.onRender.apply(this, arguments);
			if (this.iofImage) {
				this.iofImage.render(this.el.dom);
			}
			
			var body = this.el;
			body.set({'type': this.imageType}, true);
		}
	});
	
	net.autodata.compare.photos.IOFWrapper = IOFWrapper;
})();